//utf-8
//点击按钮 事件跳转至 债权包维护
function toMaintainCreditPackage(){
	
	var obj={"text":'债权包维护',"url":contextRootPath+'/tCMmCreditPackage/prepareExecute/toQueryPage'};
	parent.showObj(obj);
}



//验证密码
function toPassWord(){
	var dialogStruct={
			'display':contextRootPath+'/viewtcmmmaintain/prepareExecute/toPassWord',
			'width':800,
			'height':600,
			'title':'债权包管理',
			'buttons':[
			           {'text':'确定','action':doPassWord,'isClose':true},
			  		   {'text':'关闭','isClose':true}
			]
		};
		var dialogAdd =jyDialog(dialogStruct).open();
}

//验证密码操作
function doPassWord(){
	//序列化 新增页面的form表单数据
	var params=$("#NewsFormDataid").serialize();

	 var passWord= $("input[name='passWord']").val();

	 if(""==passWord || null==passWord){
			alert("请密码！");
			return;
	}else{
		if(passWord=="321321"){
			var obj={"text":'债权包维护',"url":contextRootPath+'/viewtcmmmaintain/prepareExecute/toQuery'};
			parent.showObj(obj);
		}else{
			alert("密码错误！请重新输入~");
			return;
		}
		
		
	}
}

